import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/dept/Department'
import Permission from './views/auth/Permission'
import Role from "./views/auth/Role2";
import Employee from "./views/emp/Employee";
import Menu from "./views/auth/Menu";
import WrongPage from "./views/403"
import System from "./views/sys/System";
import DataDictionary from "./views/sys/DataDictionary";
import DataDictionaryItem from "./views/sys/DataDictionaryItem";
import Shop from "./views/shop/Shop";
import ShopRegister from "./views/sys/ShopRegister";
import CarType from "./views/car/CarType";
import Car from "./views/car/Car";
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },

    {
        path: '/',
        component: Home,
        name: '',
        iconCls: '',
        hidden: true,
        children: [
            { path: '/403', component: WrongPage, name: '403' },
        ]
    },

    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '组织机构管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/shop', component: Shop, name: '店铺管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '权限管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/permission', component: Permission, name: '权限列表' },
            { path: '/role', component: Role, name: '角色列表' },
            { path: '/menu', component: Menu, name: '菜单列表' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/config', component: System, name: '系统配置' },
            { path: '/dictionary', component: DataDictionary, name: '数据字典' },
            { path: '/dictionaryitem/:pid', component: DataDictionaryItem, name: '数据字典详情' ,props:true }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '车辆管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/carType', component: CarType, name: '车辆分类' },
            { path: '/car', component: Car, name: '车辆列表' }
        ]
    }
];

export default routes;